<%@ page import="java.io.*" %>
<%
  Throwable throwable = (Throwable) request.getAttribute("exception");
  if (throwable != null) {
    out.print("异常信息: " + throwable.getMessage());
    out.print("<br/>"); // 使用HTML换行
    out.print("<pre>");
    throwable.printStackTrace();
    out.print("</pre>");
  }
%>